#include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
#include"Complex.h"
using namespace std;
Complex a;
int main()
{
	a.setreal(1);
	a.setimag(2);
	cout << a.getreal() << " " << a.getimag() << endl;

	a = a + a;
	cout << a.getreal() << " " << a.getimag() << endl;

	a = a * a;
	cout << a.getreal() << " " << a.getimag() << endl;

	a = a / a;
	cout << a.getreal() << " " << a.getimag() << endl;

	a = a - a;
	cout << a.getreal() << " " << a.getimag() << endl;
	return 0;
}